package com.blb.zycommunity.service.impl;

import com.blb.zycommunity.entity.SysUserRole;
import com.blb.zycommunity.mapper.SysUserRoleMapper;
import com.blb.zycommunity.service.ISysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * <p>
 * 用户和角色关联表 服务实现类
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements ISysUserRoleService {

    @Autowired
    private SysUserRoleMapper userRoleMapper;
    @Override
    public boolean removeRoleByUserId(Long userId) {
        return userRoleMapper.deleteRoleByUserId(userId);
    }

}
